package apof.dao
{
	import apof.model.ApofModel;
	
	public interface DataAccessInterface
	{
		function create(target:ApofModel):void;
		
		function update(target:ApofModel):void;
		
		function remove(target:ApofModel):void;
		function removeById(clazz:Class , id:int):void;
	
		function retrive(clazz:Class , id:int):ApofModel;
		function retriveAll(clazz:Class , fkName:String=null , value:Object=null , filter:Function=null , orderBy:String=null ,dec:Boolean=false, limit:int=-1):Array;
	}
}